// 添加审批路由组 prefix: approval
import {Route} from '@srcTypes/route';
import {requestLogger} from '@srcMiddleware/request-logger';
import {getDataFromOther, getDataFromOtherEncode} from '@srcHandlers/approval/approval';

export const approvalRoutes: Route[] = [
    {
        method: 'post',
        path: '/approval/v1/getDataFromOther',
        middleware: [requestLogger],
        handler: getDataFromOther,
    },
    {
        method: 'post',
        path: '/approval/v1/getDataFromOtherEncode',
        middleware: [requestLogger],
        handler: getDataFromOtherEncode,
    },
];
